$(function(){
	if(window.localStorage){
		console.log('This browser supports localStorage!');
		// alert('This browser supports localStorage!');
		if(localStorage.templateBuilder){
			delete localStorage.templateBuilder;
		}
		var storage={
			mode:'',//oneQuery
			origin:'',//DB or SQL
			selectedTable:'',
			queryCols:[],
			showCols:[],
			editCols:[]
		}
		localStorage.templateBuilder=JSON.stringify(storage);
	}else{
		// console.log("This browser doesn't support localStorage!");
		alert("This browser doesn't support localStorage");
	}
	
});